<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    id="WebApp_ID"
    version="2.5"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" >

    <display-name>
Couchsurfing
    </display-name>

    <context-param>

        <param-name>
contextConfigLocation
        </param-name>

        <param-value>
classpath:application-context.xml
        </param-value>
    </context-param>

    <filter>

        <filter-name>
encoding-filter
        </filter-name>

        <filter-class>
org.springframework.web.filter.CharacterEncodingFilter
        </filter-class>

        <init-param>

            <param-name>
encoding
            </param-name>

            <param-value>
UTF-8
            </param-value>
        </init-param>
    </filter>

    <filter-mapping>

        <filter-name>
encoding-filter
        </filter-name>

        <url-pattern>
/*
        </url-pattern>
    </filter-mapping>

    <listener>

        <listener-class>
org.springframework.web.context.ContextLoaderListener
        </listener-class>
    </listener>

    <servlet>

        <servlet-name>
simple-form
        </servlet-name>

        <servlet-class>
org.springframework.web.servlet.DispatcherServlet
        </servlet-class>

        <init-param>

            <param-name>
contextConfigLocation
            </param-name>

            <param-value>
classpath:application-context.xml
            </param-value>
        </init-param>
    </servlet>

    <servlet-mapping>

        <servlet-name>
simple-form
        </servlet-name>

        <url-pattern>
*.html
        </url-pattern>
    </servlet-mapping>

    <welcome-file-list>

        <welcome-file>
index.html
        </welcome-file>

        <welcome-file>
index.jsp
        </welcome-file>
    </welcome-file-list>

    <error-page>

        <exception-type>
java.lang.Throwable
        </exception-type>

        <location>
/view/error.htm
        </location>
    </error-page>

    <error-page>

        <error-code>
404
        </error-code>

        <location>
/view/error.htm
        </location>
    </error-page>

    <error-page>

        <error-code>
400
        </error-code>

        <location>
/view/error.htm
        </location>
    </error-page>

    <error-page>

        <error-code>
405
        </error-code>

        <location>
/view/error.htm
        </location>
    </error-page>

</web-app>